﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="NewsList.aspx.cs" Inherits="NLUNZ.NewsList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        		<div id="left_nav">
			<div class="subtitle">
				新闻 >>
			</div>
			<div class="item_header">
			最新资讯
			</div>
			<div class="item_details">
				<ul>
					<li>常见问题解答</li>
					<li>航班安排及时效</li>
					<li>禁运物品查询</li>
				</ul>
			</div>
			<div class="nav_img_link">
			</div>
		</div>
		<div id="body_right_page">
            <div style="margin-top: 40px; text-align: center; font-size: 16px; font-weight: bold;">
                <asp:Literal runat="server" ID="title"></asp:Literal>
            </div>
			<div class="input_form">
			<div style="text-align: center">
                <asp:GridView ID="gridViewNewsList" DataSourceID="LinqDataSource1" 
                    runat="server" AutoGenerateColumns="False" DataKeyNames="ID" ShowHeader="False"
                    EnableModelValidation="True" AllowPaging="True"  CellPadding="4" 
                    Width="700px" ForeColor="#333333" GridLines="None" >
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:HyperLinkField  ItemStyle-CssClass="newsTitleField"  HeaderText="Title" 
                            DataTextField="Title" DataNavigateUrlFields="ID" 
                            DataNavigateUrlFormatString="~/News.aspx?id={0}" >
<ItemStyle CssClass="newsTitleField"></ItemStyle>
                        </asp:HyperLinkField>
                        <asp:BoundField DataField="CreateDate"  HeaderText="CreateDate" 
                            SortExpression="CreateDate" DataFormatString="{0:yyyy-MM-dd}" 
                            ItemStyle-CssClass="newsDateField">
<ItemStyle CssClass="newsDateField"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                </asp:GridView>
                <asp:LinqDataSource ID="LinqDataSource1" 
                    ContextTypeName="NLUNZ.NLUDBDataContext" TableName="CompanyInfos" 
                    runat="server" OrderBy="CreateDate desc">
                </asp:LinqDataSource>
			</div>
			</div>
		</div>
</asp:Content>
